from flask import Flask, Blueprint
from application.api.detection.product import bp as product_bp
from application.api.detection.product_model import bp as product_model_bp
from application.api.detection.product_coil import bp as product_coil_bp
from application.api.detection.mistake import bp as mistake_bp
# 创建sys
detection_bp = Blueprint("detection", __name__, url_prefix="/detection")


def register_detection_bps(app: Flask):
    # 在admin_bp下注册子蓝图
    detection_bp.register_blueprint(product_bp)
    detection_bp.register_blueprint(product_model_bp)
    detection_bp.register_blueprint(product_coil_bp)
    detection_bp.register_blueprint(mistake_bp)
    app.register_blueprint(detection_bp)
